home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
utility
/
utilcli
/
scrnshff.lha
/
ScreenShuffle.e
< prev
next >
Wrap
Text File
|
1996-12-02
|
816b
|
51 lines
MODULE 'intuition/screens'
DEF name[200]:STRING, scr:PTR TO screen
DEF front, back
PROC main()
readArgs()
IF scr:=LockPubScreen(name)
IF front THEN ScreenToFront(scr)
IF back THEN ScreenToBack(scr)
UnlockPubScreen(NIL, scr)
ENDIF
ENDPROC
-> static data
CHAR '$VER: ScreenShuffle 0.1 (2.12.96)'
PROC readArgs()
DEF args:PTR TO LONG, rdargs:PTR TO LONG
IF rdargs:=ReadArgs('SCREEN/A,FRONT/S,BACK/S', args:=[0, FALSE, FALSE]:LONG, NIL)
IF StrLen(args[0]) THEN StrCopy(name, args[0]) ELSE StrCopy(name, 'Workbench')
front:=(args[1]<>0)
back:=(args[2]<>0)
IF Not(front OR back) THEN front:=TRUE
FreeArgs(rdargs)
ELSE
StrCopy(name, 'Workbench')
front:=TRUE
back:=FALSE
ENDIF
ENDPROC